package com.qiangqiang.task.server.controller;

import com.qiangqiang.task.server.entity.MomentsComments;
import com.qiangqiang.task.server.service.MomentsCommentsService;
import com.qiangqiang.task.server.util.ResultVOUtil;
import com.qiangqiang.task.server.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: task
 * @description:
 * @author: Sky.lin
 * @create: 2019-01-06 18:26
 **/
@RestController
@RequestMapping(value = "/momentsComments")
public class MomentsCommentsController {
    @Autowired
    private MomentsCommentsService momentsCommentsService;

    @PostMapping("/addMomentsComments")
    public ResultVO addMomentsComments(MomentsComments momentsComments) {
        return ResultVOUtil.success(momentsCommentsService.addMomentsComments(momentsComments));
    }
}
